package com.yanqu.road.server.cmd.peakstronghold;

import com.yanqu.road.logic.pb.UnionBasePb;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.PeakStrongholdWarProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.manager.peakstronghold.CrossPeakStrongholdActivityMgr;
import com.yanqu.road.server.manager.peakstronghold.CrossPeakStrongholdMgr;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.Protocol;
import com.yanqu.road.utils.YanQuMessageUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Cmd(code = Protocol.C_PEAK_STRONGHOLD_ELIMINATION_REPORT, desc = "查看淘汰赛联盟战报")
public class CrossPeakStrongholdGetEliminateReportCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        PeakStrongholdWarProto.CrossGetEliminateUnionReportReqMsg req = PeakStrongholdWarProto.CrossGetEliminateUnionReportReqMsg.parseFrom(packet.getBytes());
        CrossPeakStrongholdMgr.sendHoldDamageReport(req.getActivityId(), serverId, packet.getPlayerId(), req.getUnionId(), req.getType());
    }

    @Override
    public void sendData() {

    }
}
